package com.atguigu.tingshu.order.service;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.vo.order.OrderInfoVo;
import com.atguigu.tingshu.vo.order.TradeVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface OrderInfoService extends IService<OrderInfo> {


    OrderInfoVo trade(TradeVo tradeVo);

    Map<String, Object> submitOrder(OrderInfoVo orderInfoVo);

    OrderInfo saveOrderInfo(OrderInfoVo orderInfoVo, Long userId, String orderNo);

    /**
     * 支付成功后的事情
     */
    void PaySuccess(Long userId,String orderNo);

    OrderInfo getOrderInfo(String orderNo,Long userId);

    IPage<OrderInfo> findUserPage(IPage<OrderInfo> page, Long userId);
}

